package com.quarkus.spring.mybatis.controller;

import com.quarkus.spring.mybatis.service.SysUserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 用户信息表服务控制器
 *
 * @author zhl
 * @since 2022-03-31 15:23:46
 */

@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    private final SysUserService sysUserService;

    @GetMapping("/list")
    public List getList(){
        return sysUserService.list();
    }

}